package com.teradata.olingo.processor.core.filter;

import org.apache.olingo.server.api.ODataApplicationException;
import org.apache.olingo.server.api.uri.queryoption.expression.MethodKind;

import javax.persistence.criteria.Expression;
import java.util.List;

final class GenericMethodBasedExpression extends GenericMethodCallImp implements GenericExpression {

  public GenericMethodBasedExpression(GenericOperationConverter converter, MethodKind methodCall,
                                      List<GenericOperator> parameters) {
    super(converter, methodCall, parameters);
  }

  @SuppressWarnings("unchecked")
  @Override
  public Expression<Boolean> get() throws ODataApplicationException {
    return (Expression<Boolean>) super.get();
  }
}
